﻿@{
    ViewBag.Title = "VerifyEmail";

    var goBack = "/Home/Index";
    try{ goBack = Request.UrlReferrer.AbsolutePath;}catch{}
}
<h2>VerifyEmail</h2>


<div>
<p>You are our valuable member on this site . We are commited to enhance your user experiences.</p>
<p class="message-success">@ViewBag.StatusMessage</p>


@if (goBack != "/Account/Login")
{
    <div style="width:80%; padding:20px; border:2px solid red">
        You are being redirected within <span id="timeRemainingToRedirect"> 10 </span> .00  seconds.
        <script type="text/javascript">
            var ttr = 10;
            window.setInterval(function () {
                if (ttr <= 0) {
                    var url = "@goBack";
                    window.self.location.href = url;
                }
                document.getElementById("timeRemainingToRedirect").innerHTML = ttr--;
            }, 1000);
        </script>
    </div>
}

    </div>